<template>
  <el-table :data="tableData" class="chart-table" border>
    <!-- 动态渲染列 -->
    <el-table-column
      v-for="(column, index) in tableColumns"
      :key="index"
      :prop="column.prop"
      :label="column.label"
    />
  </el-table>
</template>

<script setup>
defineProps({
  tableData: {
    type: Array,
    default: () => [],
  },
  tableColumns: {
    type: Array,
    default: () => [],
  },
});
</script>

<style lang="scss">
@import "@/common/table.scss";
.chart-table {
      width: calc(100% - vw(10));
      height:100%;
    }
/* 你可以根据需要添加样式 */
</style>
